<?php

namespace App\Models;

class UserWeeklyStats extends Model
{
    protected $table = 'user_weekly_stats';


    protected $fillable = ['user_id', 'week'];



    // ============= scope ==========



    // ============= field ==========
    public function getWeek()
    {
        return $this->week;
    }

    public function getWordCount()
    {
        return $this->word_count;
    }

    public function incrWordCount($count)
    {
        $this->word_count += $count;
    }
    public function setWordCount($count)
    {
        $this->word_count = $count;
    }

    public function getStartData()
    {
        return $this->start_data;
    }
    public function setStartData($start_data)
    {
        $this->start_data = $start_data;
    }

    public function getEndData()
    {
        return $this->end_data;
    }
    public function setEndData($end_data)
    {
        $this->end_data = $end_data;
    }
}
